package com.liujun.spring4.demo.aop.aop.afteradvice;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * 后置增强，在目标类方法调用后执行
 *
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/22
 */
public class GreetingAtferAdvice implements AfterReturningAdvice {

  @Override
  public void afterReturning(Object returnValue, Method method, Object[] args, Object target)
      throws Throwable {

    System.out.println("please enjoy youself!");
  }
}
